## -*- coding: utf-8 -*-
<%%>
<div class="search_results">
<b>${c.agg_name}</b>: найдено ${c.how_much} по <a href="${c.search_url}" target="_blank">запросу</a>
% if c.blocks:
<ul>

% for name, links in c.blocks.items():
    <% if len(links) == 0: continue %>
	
    <li>
    % if name != "" :
	<b>${name}</b>
	<ul>
    % endif
	% for url in links:
	    <li>${url}</li>
	% endfor
    % if name != "" :
	</ul>
    % endif
    </li>
% endfor
</ul>
% endif
</div>
